all:
	pdflatex report.tex

bib:
	pdflatex report.tex
	bibtex report.aux
	pdflatex report.tex
	pdflatex report.tex
	
clean latexclean::
	@rm -f *.log *.aux *.dvi *.bbl *.blg *.ilg *.toc *.lof *.lot *.idx *.ind *.out *.brf *.html *.btmp *.itmp *.rerun *.glo *.gls *.nlo *.nls
	@epsfiles=`find * -maxdepth 0  -name "*.eps" `; \
	if [ -n "$$epsfiles" ]; then \
		for i in *.eps; do \
			if [ -f `basename $$i .eps`.fig ]; then \
				rm -f $$i; \
			elif ( rcs `basename $$i .eps`.fig >& /dev/null ); then \
				rm -f $$i; \
			fi \
		done \
	fi

